package com.wangjw.tuling.zookeeper.own;

import org.apache.zookeeper.KeeperException;

/**
 * Created by wangjianwen on 2018/12/1.
 */
public class ZooKeeperAclTester {

    public static void main(String[] args) throws KeeperException, InterruptedException {
        ZookeeperAcl zookeeperAcl = new ZookeeperAcl();

        zookeeperAcl.createPersistent("/wangjw", "Java");
        zookeeperAcl.createEPhemeral("/wangmz", "Go");

        System.out.println(zookeeperAcl.getData("/wangjw"));
        System.out.println(zookeeperAcl.getData("/wangmz"));
    }
}
